﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.login
{
    public class WarRecordRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 21;

        public string AuthCode { get; set; }
        public string RoomID { get; set; }
        public string Time { get; set; }
        public int MaxChapter { get; set; }
        public int EndChapter { get; set; }

        public void decode(Input _in)
        {
            AuthCode = _in.readString();
            RoomID = _in.readString();
            Time = _in.readString();
            MaxChapter = _in.readInt();
            EndChapter = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "WarRecordRet [AuthCode=" + AuthCode + ",roomIDTex=" + RoomID  + "_time=" + Time + ",maxChapter=" + MaxChapter +
                   ",endChapter=" + EndChapter  +", ]";
        }
    }
}